//
//  ImageCell.m
//  LazyEnglish
//
//  Created by lanou3g on 16/1/5.
//  Copyright © 2016年 李洋. All rights reserved.
//

#import "ImageCell.h"

@implementation ImageCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self allViews];
    }
    return self;
}

-(void)allViews{
    
    self.imageView =[[UIImageView alloc] initWithFrame:self.contentView.bounds];
    //把图片改变成圆的
    self.imageView.clipsToBounds = YES;
    self.imageView.layer.cornerRadius =35;
    
    //self.imageView.backgroundColor =[UIColor redColor];
    [self.contentView addSubview:self.imageView];
    
    self.nameLable =[[UILabel alloc] initWithFrame:CGRectMake(10, self.contentView.frame.size.height +10, 100, 20)];
    [self.contentView addSubview:self.nameLable];
    
    
    
}

-(void)layoutSubviews{
    
    
    self.imageView.frame =self.contentView.bounds;
    
}

@end
